package com.dlc.yunguang.adapter;

import com.dlc.commonlibrary.adapter.BaseRecyclerAdapter;
import com.dlc.yunguang.net.bean.WashOrderDetailBean;
import com.dlc.yunguang.R;

/**
 * Created by John on 2017/7/19.
 */

public class OrderDetailAdapter<T extends WashOrderDetailBean.DataBean.SpecGroupBean> extends BaseRecyclerAdapter<T> {

    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_inventory_detail;
    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        T item = getItem(position);
        holder.setText(R.id.tv_name, item.getTitle());
      //  holder.setText(R.id.tv_type,item.getCategory());
        holder.setText(R.id.tv_standard,item.getSpec());
        holder.setText(R.id.tv_number,item.getCount());
    }
}
